#include "heap.h"

int main()
{
	HP hp;
	HPInit(&hp);
	int array[] = { 27,15,19,18,28,34,65,49,25,37 };

	for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++)
	{
		HPPush(&hp, array[i]);
	}
	while (!HPEmpty(&hp))
	{
		int ret = HPTop(&hp);
		HPPop(&hp);
		printf("%d ", ret);
	}

	HPDestroy(&hp);

	return 0;
}